package com.zhiche.lisa.lspm.service.driver;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.lspm.dao.model.driver.DriverLicense;

import java.util.List;

/**
 * 司机证照 service
 * @since 2018-05-28
 * @author lbl
 */
public interface IDriverLicenseService extends IService<DriverLicense> {
    /**
     * 批量添加证照
     */
    void batchInsert(List<DriverLicense> list);

    /**
     * 删除
     */
    void delete(Integer id);

    /**
     * 根据附件信息异步更新证照信息
     */
    void updateLicense(String key, Long driverLicenseId,String attachType,String authorization);

    /**
     * 根据司机id查询身份证号码
     *
     */
    List<DriverLicense> queryIDcard(Long driverId);

    DriverLicense selectOneNoTenant(Wrapper<DriverLicense> licenseEW);

    List<DriverLicense> selectListNoTenant(EntityWrapper<DriverLicense> licenseEW);
}
